<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.1.0.js"></script>
<script type="text/javascript">
	$(function(){
		$("#cancelBtn").click(function(){
			self.close();
		});
		$("#replyBtn").click(function(){
				if(confirm("답변 하시겠습니까?")==true){
					window.opener.location.href="${initParam.root}/mentoring/replyMentorQuestion.do?"+$("#replyForm").serialize();
					self.close();
				}else{
					return false;
				};
				
			});
	});

</script>
</head>
<body>
	<h1 align="center">질문 답변</h1>
<form id="replyForm">
<input type="hidden" name="reNoteNo" value="${requestScope.nvo.no }">
<input type="hidden" name="sender.id" value="${sessionScope.mvo.id}">
<input type="hidden" name="receiver.id" value="${requestScope.nvo.sender.id }">
<input type="hidden" name="level" value="${requestScope.nvo.level }">
<table border="1" align="center">	
	<tr>
		<td>보낸이</td>
		<td>
			닉네임:   
		</td>
	</tr>
	<tr>
		<td>질문내용</td><td>${requestScope.nvo.content }</td>
	</tr>
	<tr>
		<td>답변내용</td>
		<td>
			<textarea name="content" cols="55" rows="15" style="margin: 4px 0px 0px; width: 412px; height: 208px; resize:none">
			RE:  
			
			</textarea>
		</td>
	</tr>
	<tr>
		<td colspan="3" align="center">
			<input type="button" value="답장" id="replyBtn"> &nbsp; &nbsp; &nbsp;
			<input type="button" value="취소" id="cancelBtn">
		</td>
	</tr>
</table>
</form>
</body>
</html>